#python Syntax (Toggle Plain Text)
class Person(object):
    def __init__(self, name=None, job=None, quote=None, **myhash):
        self.name = name
        self.job = job
        self.quote = quote
        self.myhash = myhash
 
#create an empty list
personList = []
 
#create two class instances
personList.append(Person("Payne N. Diaz", "coach", "Without exception, there is no rule!"))
personList.append(Person("Mia Serts", "bicyclist", "If the world didn't suck, we'd all fall off!"))
 
# test empty myhash
print personList[0].myhash  # {}
 
# assign a single entry to the dictionary of each class instance
personList[0].myhash['person0'] = 0
personList[1].myhash['person1'] = 1
 
# print dictionary of first class instance
print personList[0].myhash  # {'person0': 0}
 
# print dictionary of second class instance
print personList[1].myhash  # {'person1': 1}
